////////////////////////////////////////////////////////////////////////////////////
// Place holder for extending logging option in the future
//
//
// Created by: Vincent Rothwell
////////////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.Text;

namespace ARF
{
    public class Log
    {
        public static void Trace(Exception ex)
        {
            Trace(ex, false);
        }

        public static void Trace(Exception ex, bool writeToApplicationLog)
        {
            if (ARFSettings.DebugEnabled)
                System.Diagnostics.Trace.WriteLine(ex);
            else
                System.Diagnostics.Debug.WriteLine(ex);
        }

        public static void Trace(string msg)
        {
            if (ARFSettings.DebugEnabled)
                System.Diagnostics.Trace.WriteLine(msg);
            else
                System.Diagnostics.Debug.WriteLine(msg);
        }
    }
}
